<template>
  <Page header="通知详情" is-back>
    <div class="notice-item" style="padding-top: 100rpx">
      <div class="notice-title">{{ detail.title }}</div>
      <div class="notice-date">{{ detail.create_time }}</div>
      <rich-text :nodes="detail.content"></rich-text>
    </div>
  </Page>
</template>
<script>
import Page from "../../components/Page.vue";

export default {
  name: "index",
  components: {Page},
  data() {
    return {
      detail: {}
    }
  },
  onLoad({ id }) {
    uni.showLoading({
      title: '加载中',
      mask: true,
      duration: 0
    })
    this.$api.getNoticeDetail({
      id
    }).then(res => {
      this.detail = res.result
    }).finally(() => {
      uni.hideLoading()
    })
  },
  methods: {
  }

}
</script>

<style lang="scss">
</style>
